package ch09.shili;

import java.io.DataOutputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

// DataOutputStream
public class S10_A {

    public static void main(String[] args) {
        try(DataOutputStream dos = new DataOutputStream(new FileOutputStream("data/s10.data"))){
            dos.writeInt(111);
            dos.writeUTF("aaa");
            dos.writeInt(23432555);
            dos.flush();
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
